/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

public class Tarjeta {
	public Tarjeta() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_TARJETA_COORDENADAS) {
			return ORM_coordenadas;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int id_tarjeta;
	
	private String nombre;
	
	private String clave;
	
	private orm.Cliente clienteid_cliente;
	
	private java.util.Set ORM_coordenadas = new java.util.HashSet();
	
	private void setId_tarjeta(int value) {
		this.id_tarjeta = value;
	}
	
	public int getId_tarjeta() {
		return id_tarjeta;
	}
	
	public int getORMID() {
		return getId_tarjeta();
	}
	
	public void setNombre(String value) {
		this.nombre = value;
	}
	
	public String getNombre() {
		return nombre;
	}
	
	public void setClave(String value) {
		this.clave = value;
	}
	
	public String getClave() {
		return clave;
	}
	
	public void setClienteid_cliente(orm.Cliente value) {
		if (this.clienteid_cliente != value) {
			orm.Cliente lclienteid_cliente = this.clienteid_cliente;
			this.clienteid_cliente = value;
			if (value != null) {
				clienteid_cliente.setTarjeta(this);
			}
			else {
				lclienteid_cliente.setTarjeta(null);
			}
		}
	}
	
	public orm.Cliente getClienteid_cliente() {
		return clienteid_cliente;
	}
	
	private void setORM_Coordenadas(java.util.Set value) {
		this.ORM_coordenadas = value;
	}
	
	private java.util.Set getORM_Coordenadas() {
		return ORM_coordenadas;
	}
	
	public final orm.CoordenadasSetCollection coordenadas = new orm.CoordenadasSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_TARJETA_COORDENADAS, orm.ORMConstants.KEY_COORDENADAS_TARJETAID_TARJETA, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getId_tarjeta());
	}
	
}
